package com.cool.service.brand.brandimpl;

import com.cool.mapper.brandmapper.BrandMapper;
import com.cool.po.brand.BrandPo;
import com.cool.service.brand.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

/**
 * 商品管理服务层实现
 */
@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
    private BrandMapper brandMapper;

    @Override
    public List<BrandPo> findAll() {
        return brandMapper.findAll();
    }

    @Override
    public List<BrandPo> queryByLike(String inputString) {
        return brandMapper.queryByLike(inputString);
    }

    @Override
    public Integer insertBrand(BrandPo brandPo) {
        return brandMapper.insertBrand(brandPo);
    }

    @Override
    public Integer updateBrand(BrandPo brandPo) {
        return brandMapper.updateBrand(brandPo);
    }

    @Override
    public Integer deletBrand(List list) {
        return brandMapper.deletBrand(list);
    }
}
